import 'package:json_annotation/json_annotation.dart';
import 'note_model.dart';
part 'topic_big_model.g.dart';

/// 列表模型数组
class TopicBigModelList {
  List<TopicBigModel> list;
  TopicBigModelList(this.list);
  factory TopicBigModelList.fromJson(List<dynamic> list) {
    return TopicBigModelList(
      list.map((item) => TopicBigModel.fromJson(item)).toList(),
    );
  }
}

@JsonSerializable()
class TopicBigModel {
  /// url
  String? jumpUrl;
  /// 类型
  int? type;
  /// 背景结束颜色
  NoteModel? note;

  TopicBigModel(this.jumpUrl,this.type,this.note,
      );
  factory TopicBigModel.fromJson(Map<String,dynamic> json) => _$TopicBigModelFromJson(json);
  Map<String, dynamic> toJson() => _$TopicBigModelToJson(this);

}